package com.atgm.mall.gmmailproduct.service.impl;

import com.atgm.mall.gmmailproduct.dao.GameTypeRelaDao;
import com.atgm.mall.gmmailproduct.entity.GameTypeRelaEntity;
import com.atgm.mall.gmmailproduct.service.GameTypeRelaService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class GameTypeRelaServiceImpl extends ServiceImpl<GameTypeRelaDao, GameTypeRelaEntity> implements GameTypeRelaService {

    @Override
    public List<GameTypeRelaEntity> queryListByTypeIds(List<Long> typeIds) {
        QueryWrapper<GameTypeRelaEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.in("type_id", typeIds);
        List<GameTypeRelaEntity> list = baseMapper.selectList(queryWrapper);
        return list;
    }
}
